// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
// import Vconsole from 'vconsole'
// import 'mint-ui/lib/style.css'
import './assets/font/iconfont.css'

Vue.use(MintUI)

Vue.config.productionTip = false

// const vConsole = new Vconsole()
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
// export default vConsole
// export default ({ app }) => {
//   app.router.afterEach((to, from) => {
//     const u = navigator.userAgent.toLowerCase()
//     if (u.indexOf('like mac os x') < 0 || u.match(/MicroMessenger/i) !== 'micromessenger') return
//     if (to.path !== global.location.pathname) {
//       location.assign(to.fullPath)
//     }
//   })
// }
